package com.hxzy.dto;

import com.hxzy.common.enums.AckCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import reactor.core.publisher.Flux;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "登录模型")
@Getter
@Setter
public class LoginDTO {

    @NotBlank(message = "账户不能为空" )
    @ApiModelProperty(value = "账户",required = true)
    private String loginName;

    @NotBlank(message = "密码不能为空" )
    @Length(min = 2,max = 20,message = "密码长度在2-20之间")
    @ApiModelProperty(value = "密码",required = true)
    private String loginPwd;

    @NotBlank(message = "验证码不能为空" )
    @ApiModelProperty(value = "验证码",required = true)
    private String code;

    @NotBlank(message = "验证码标识不能为空" )
    @ApiModelProperty(value = "验证码标识",required = true)
    private String uuid;
}
